-- GENERATED SPELL FOR [Dark Rune Warbringer] --


function spell0_32877(pUnit, Event) --@Aura of Celerity,Self--
pUnit:FullCastSpellOnTarget(62320,pUnit)
pUnit:RegisterEvent('Sorts_32877', 572, 1)
end

function spell1_32877(pUnit, Event) --@Runic Strike,n/a--
pUnit:FullCastSpellOnTarget(62322,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32877', 627, 1)
end

function Sorts_32877(pUnit, Event)
local choix_sorts_32877 = math.random(0, 1)
if choix_sorts_32877 == 0 then
pUnit:RegisterEvent('spell0_32877', 1, 1)
end
if choix_sorts_32877 == 1 then
pUnit:RegisterEvent('spell1_32877', 1, 1)
end
end

function mob32877_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32877', math.random(1500, 3000), 1)
end

function mob32877_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32877_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32877_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32877, 1, 'mob32877_Action')
RegisterUnitEvent(32877, 2, 'mob32877_Leave')
RegisterUnitEvent(32877, 3, 'mob32877_Kill')
RegisterUnitEvent(32877, 4, 'mob32877_Die')
